package cn.calm.action;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceRegistration;

public class Activator implements BundleActivator{
	ServiceRegistration<TestAction> registerService;
	@Override
	public void start(BundleContext arg0) throws Exception {
		registerService = arg0.registerService(TestAction.class, new TestAction(), null);
	}

	@Override
	public void stop(BundleContext arg0) throws Exception {
		registerService.unregister();
	}

}
